<extend name="Public/List/Common"/>

<block name="pageHeader">
    <div class="bjui-pageHeader">
        <a href="{:U('addhook')}" class="btn btn-green" data-toggle="dialog" data-width="600" data-height="200"
           data-id="dialog-normal" data-mask="true" data-title="{$arr.title}-编辑">添加</a>
    </div>
</block>

<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th data-order-field="id">编号</th>
                <th>名称</th>
                <th>描述</th>
                <th>类型</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if(@$list)foreach($list as $arr):?>
            <tr data-id="{$arr.id}">
                <td>{$arr.id}</td>
                <td>{$arr.name}</td>
                <td>{$arr.description}</td>
                <td>{$arr.type_text}</td>
                <td>
                    <a href="{:U('edithook?id='.$arr['id'].'&id='.$arr['id'])}" class="btn btn-green" data-toggle="dialog" data-width="600" data-height="300" data-id="dialog-normal" data-mask="true" data-title="{$arr.name}-编辑">编辑</a>
                    <a href="{:U('delhook?id='.$arr['id'])}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                </td>
            </tr>
            <?php endforeach;?>
            </tbody>
        </table>
    </div>
</block>